{% set qualifications = data('TeacherQualification',{'count': config.count|default(12)}) %}
{% if qualifications and setting('qualification.qualification_enabled') == '1' %}
<section class="teacher-qualification {{config.background|default("")}}">
  <div class="container">
    <div class="text-line gray">
      <h5>
        <span>{{ config.title|default(config.defaultTitle) }}</span>
        <div class="line"></div>
      </h5>
      <div class="subtitle">{{ config.subTitle|default(config.defaultSubTitle) }}</div>
    </div>
    <div class="teacher-qualification-list row">
      {% for qualification in qualifications %}
        <div class="col-lg-2 col-md-4 col-xs-6">
          <div class="teacher-qualification-item">
            <div class="img-box">
              <img src="{{ qualification.url }}">
            </div>
            <div class="teacher-name text-overflow">{{ qualification.truename }}</div>
            <p>{{ 'homepage.teacher_qualification.code'|trans }}</p>
            <p>{{ qualification.code }}</p>
          </div>
        </div>
      {% endfor %}
    </div>
    <div class="section-more-btn">
      <a href="{{ path('teacher_qualification') }}" class="btn btn-default btn-lg">
        {{'homepage.teacher_qualification.more'|trans}}
        <i class="mrs-o es-icon es-icon-chevronright"></i>
      </a>
    </div>
  </div>
</section>
{% endif %}